home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _7BE957FBBAB347E8AD14F36908204BE8 < prev    next >
Encoding:
Text File  |  2002-04-17  |  8.1 KB  |  410 lines

  1. {
  2.     \\ INGAME_LEAVE MENU
  3.  
  4.     menuDef 
  5.     {
  6.         name        "ingame_leave"
  7.         visible        1
  8.         fullScreen    0
  9.         rect        488 50 128 125
  10.  
  11.         onOpen
  12.         {
  13.             show leave_menu_group;
  14.  
  15.             hide mainmenu_confirm_group;
  16.             hide quit_confirm_group;
  17.         }
  18.  
  19.         ////////////////////////////////////////////////////////////////////////
  20.         //  Dialog frame
  21.         ////////////////////////////////////////////////////////////////////////
  22.  
  23.         itemDef
  24.         {
  25.             name        window
  26.             style        WINDOW_STYLE_SHADER
  27.             rect        -6 -6 134 131
  28.             background    "gfx/menus/ingame/background.png"
  29.             visible        1
  30.             decoration
  31.         }
  32.  
  33.         itemDef
  34.         {
  35.             name        window
  36.             style        WINDOW_STYLE_SHADER
  37.             rect        -12 -10 8 8
  38.             background    "gfx/menus/ingame/frame_topleft.png"
  39.             visible        1
  40.             decoration
  41.         }
  42.  
  43.         itemDef
  44.         {
  45.             name        window
  46.             style        WINDOW_STYLE_SHADER
  47.             rect        -6 -10 134 8
  48.             background    "gfx/menus/ingame/frame_top.png"
  49.             visible        1
  50.             decoration
  51.         }
  52.  
  53.         itemDef
  54.         {
  55.             name        window
  56.             style        WINDOW_STYLE_SHADER
  57.             rect        128 -10 8 8
  58.             background    "gfx/menus/ingame/frame_topright.png"
  59.             visible        1
  60.             decoration
  61.         }
  62.  
  63.         itemDef
  64.         {
  65.             name        window
  66.             style        WINDOW_STYLE_SHADER
  67.             rect        -12 125 8 8
  68.             background    "gfx/menus/ingame/frame_bottomleft.png"
  69.             visible        1
  70.             decoration
  71.         }
  72.  
  73.         itemDef
  74.         {
  75.             name        window
  76.             style        WINDOW_STYLE_SHADER
  77.             rect        -6 125 134 8
  78.             background    "gfx/menus/ingame/frame_bottom.png"
  79.             visible        1
  80.             decoration
  81.         }
  82.  
  83.         itemDef
  84.         {
  85.             name        window
  86.             style        WINDOW_STYLE_SHADER
  87.             rect        128 125 8 8
  88.             background    "gfx/menus/ingame/frame_bottomright.png"
  89.             visible        1
  90.             decoration
  91.         }
  92.  
  93.         itemDef
  94.         {
  95.             name        window
  96.             style        WINDOW_STYLE_SHADER
  97.             rect        128 -5 8 130
  98.             background    "gfx/menus/ingame/frame_right.png"
  99.             visible        1
  100.             decoration
  101.         }
  102.  
  103.         itemDef
  104.         {
  105.             name        window
  106.             style        WINDOW_STYLE_SHADER
  107.             rect        -12 -5 8 130
  108.             background    "gfx/menus/ingame/frame_left.png"
  109.             visible        1
  110.             decoration
  111.         }
  112.  
  113.         itemDef 
  114.         {
  115.              name        mainmenu_button
  116.             group        leave_menu_group
  117.             style        WINDOW_STYLE_FILLED
  118.             type        ITEM_TYPE_BUTTON
  119.              text        "Main Menu"
  120.              rect        10 26 100 26
  121.              textalign    1    
  122.              textalignx    50
  123.             textaligny    6
  124.             textfont    "hud"
  125.             textscale    .43
  126.               forecolor    .12 .14 .08 1
  127.               visible        1
  128.             border        1
  129.             bordercolor    0 0 0 1
  130.  
  131.               action 
  132.             { 
  133.                 play "sound/misc/menus/select.wav" ; 
  134.  
  135.                 hide leave_menu_group;
  136.                 show mainmenu_confirm_group; 
  137.             }
  138.             mouseEnter 
  139.             { 
  140.                 play "sound/misc/menus/hilite1.wav" ; 
  141.                 setitemcolor mainmenu_button backcolor .12 .14 .08 1;
  142.                 setitemcolor mainmenu_button forecolor .49 .56 .27 1;
  143.             }                 
  144.             mouseExit 
  145.             { 
  146.                 setitemcolor mainmenu_button backcolor 0 0 0 0;
  147.                 setitemcolor mainmenu_button forecolor .12 .14 .08 1;
  148.             }
  149.         }
  150.  
  151.         itemDef 
  152.         {
  153.               name        quit_button
  154.             group        leave_menu_group
  155.             style        WINDOW_STYLE_FILLED
  156.             type        ITEM_TYPE_BUTTON
  157.               rect        10 70 100 26
  158.               text        "Quit"
  159.               textalign    1    
  160.               textalignx    50 
  161.               textaligny    6
  162.             textfont    "hud"
  163.             textscale    .43
  164.               forecolor    .12 .14 .08 1
  165.               visible        1
  166.             border        1
  167.             bordercolor    0 0 0 1
  168.               
  169.             action 
  170.             {
  171.                 play "sound/misc/menus/select.wav" ; 
  172.  
  173.                 hide leave_menu_group;        
  174.                 show quit_confirm_group
  175.             }
  176.             mouseEnter 
  177.             { 
  178.                 play "sound/misc/menus/hilite1.wav" ; 
  179.                 setitemcolor quit_button backcolor .12 .14 .08 1;
  180.                 setitemcolor quit_button forecolor .49 .56 .27 1
  181.             }                 
  182.             mouseExit 
  183.             { 
  184.                 setitemcolor quit_button backcolor 0 0 0 0;
  185.                 setitemcolor quit_button forecolor .12 .14 .08 1
  186.             }
  187.         }
  188.  
  189.         // CONFIRMS
  190.         
  191.         itemDef 
  192.         {
  193.              name        window
  194.             group        mainmenu_confirm_group
  195.              text        "Exit to"
  196.              rect        0 28 128 20   
  197.              textalign    1    
  198.              textalignx    64
  199.             textaligny    2
  200.             textfont    "hud"
  201.             textscale    .43
  202.               forecolor    .12 .14 .08 1
  203.               visible        1
  204.             decoration
  205.         }
  206.  
  207.         itemDef 
  208.         {
  209.              name        window
  210.             group        mainmenu_confirm_group
  211.              text        "Main Menu?"
  212.              rect        0 45 128 20   
  213.              textalign    1    
  214.              textalignx    64
  215.             textaligny    2
  216.             textfont    "hud"
  217.             textscale    .43
  218.               forecolor    .12 .14 .08 1
  219.               visible        1
  220.             decoration
  221.         }
  222.  
  223.         itemDef 
  224.         {
  225.             name        mainmenu_yes_button
  226.             group        mainmenu_confirm_group
  227.             type        ITEM_TYPE_BUTTON
  228.             style        WINDOW_STYLE_FILLED
  229.             rect        18 80 40 20
  230.             text        "Yes"
  231.             textfont    "hud"
  232.             textscale    .43
  233.             textalign    1
  234.             textalignx    20
  235.             textaligny    2
  236.               forecolor    .12 .14 .08 1
  237.             backcolor    0 0 0 0
  238.             visible        1
  239.             border        1
  240.             bordercolor 0 0 0 1
  241.             
  242.             action 
  243.             { 
  244.                 play "sound/misc/menus/select.wav" ; 
  245.  
  246.                 uiScript leave 
  247.             }
  248.             mouseEnter 
  249.             { 
  250.                 play "sound/misc/menus/hilite1.wav" ; 
  251.                 setitemcolor mainmenu_yes_button backcolor .12 .14 .08 1;
  252.                 setitemcolor mainmenu_yes_button forecolor .49 .56 .27 1
  253.             }                 
  254.             mouseExit 
  255.             { 
  256.                 setitemcolor mainmenu_yes_button backcolor 0 0 0 0;
  257.                 setitemcolor mainmenu_yes_button forecolor .12 .14 .08 1;
  258.             }
  259.         }
  260.  
  261.         itemDef 
  262.         {
  263.             name        mainmenu_no_button
  264.             group        mainmenu_confirm_group
  265.             type        ITEM_TYPE_BUTTON
  266.             style        WINDOW_STYLE_FILLED
  267.             text        "No"
  268.             rect        70 80 40 20
  269.             textalign    1
  270.             textalignx    20
  271.             textaligny    2
  272.             textfont    "hud"
  273.             textscale    .43
  274.               forecolor    .12 .14 .08 1
  275.             backcolor    0 0 0 0
  276.             visible        1
  277.             border        1
  278.             bordercolor 0 0 0 1
  279.  
  280.             action 
  281.             { 
  282.                 play "sound/misc/menus/select.wav" ; 
  283.  
  284.                 hide mainmenu_confirm_group; 
  285.                 show leave_menu_group;
  286.             }
  287.             mouseEnter 
  288.             { 
  289.                 play "sound/misc/menus/hilite1.wav" ; 
  290.                 setitemcolor mainmenu_no_button backcolor .12 .14 .08 1;
  291.                 setitemcolor mainmenu_no_button forecolor .49 .56 .27 1
  292.             }                 
  293.             mouseExit 
  294.             { 
  295.                 setitemcolor mainmenu_no_button backcolor 0 0 0 0;
  296.                 setitemcolor mainmenu_no_button forecolor .12 .14 .08 1;
  297.             }
  298.         }
  299.  
  300.         itemDef 
  301.         {
  302.              name        window
  303.             group        quit_confirm_group
  304.              text        "Want to"
  305.              rect        0 28 128 20   
  306.              textalign    1    
  307.              textalignx    64
  308.             textaligny    2
  309.             textfont    "hud"
  310.             textscale    .43
  311.               forecolor    .12 .14 .08 1
  312.               visible        1 
  313.             decoration
  314.         }
  315.  
  316.         itemDef 
  317.         {
  318.              name        window
  319.             group        quit_confirm_group
  320.              text        "Quit Game?"
  321.              rect        0 45 128 20
  322.              textalign    1    
  323.              textalignx    64
  324.             textaligny    2
  325.             textfont    "hud"
  326.             textscale    .43
  327.               forecolor    .12 .14 .08 1
  328.               visible        1 
  329.             decoration
  330.         }
  331.  
  332.         itemDef 
  333.         {
  334.             name        quit_yes_button
  335.             group        quit_confirm_group
  336.             type        ITEM_TYPE_BUTTON
  337.             style        WINDOW_STYLE_FILLED
  338.             rect        18 80 40 20
  339.             text        "Yes"
  340.             textfont    "hud"
  341.             textscale    .43
  342.             textalign    1
  343.             textalignx    20
  344.             textaligny    2
  345.               forecolor    .12 .14 .08 1
  346.             backcolor    0 0 0 0
  347.             visible        1
  348.             border        1
  349.             bordercolor 0 0 0 1
  350.             
  351.             action 
  352.             { 
  353.                 play "sound/misc/menus/select.wav" ; 
  354.  
  355.                 uiScript quit
  356.             }
  357.             mouseEnter 
  358.             { 
  359.                 play "sound/misc/menus/hilite1.wav" ; 
  360.                 setitemcolor quit_yes_button backcolor .12 .14 .08 1;
  361.                 setitemcolor quit_yes_button forecolor .49 .56 .27 1
  362.             }                 
  363.             mouseExit 
  364.             { 
  365.                 setitemcolor quit_yes_button backcolor 0 0 0 0;
  366.                 setitemcolor quit_yes_button forecolor .12 .14 .08 1;
  367.             }
  368.         }
  369.  
  370.         itemDef 
  371.         {
  372.             name        quit_no_button
  373.             group        quit_confirm_group
  374.             type        ITEM_TYPE_BUTTON
  375.             style        WINDOW_STYLE_FILLED
  376.             text        "No"
  377.             rect        70 80 40 20
  378.             textalign    1
  379.             textalignx    20
  380.             textaligny    2
  381.             textfont    "hud"
  382.             textscale    .43
  383.               forecolor    .12 .14 .08 1
  384.             backcolor    0 0 0 0
  385.             visible        1
  386.             border        1
  387.             bordercolor 0 0 0 1
  388.  
  389.             action 
  390.             { 
  391.                 play "sound/misc/menus/select.wav" ; 
  392.  
  393.                 hide quit_confirm_group ; 
  394.                 show leave_menu_group;
  395.             }
  396.             mouseEnter 
  397.             { 
  398.                 play "sound/misc/menus/hilite1.wav" ; 
  399.                 setitemcolor quit_no_button backcolor .12 .14 .08 1;
  400.                 setitemcolor quit_no_button forecolor .49 .56 .27 1
  401.             }                 
  402.             mouseExit 
  403.             { 
  404.                 setitemcolor quit_no_button backcolor 0 0 0 0;
  405.                 setitemcolor quit_no_button forecolor .12 .14 .08 1;
  406.             }
  407.         }
  408.     }
  409. }
  410.